//
//  DataSingleton.m
//  cam
//
//  Created by VIETHUNG on 12/20/13.
//  Copyright (c) 2013 DanielLe. All rights reserved.
//

#import "DataSingleton.h"
static DataSingleton *dataInstance = nil;
@implementation DataSingleton

+ (id)shareManager
{
    if (dataInstance != nil) {
        return dataInstance;
    }
    
    static dispatch_once_t onceToken = 0;
    dispatch_once(&onceToken, ^{
        dataInstance = [[self alloc] init];
    });
    return dataInstance;
}

- (NSMutableArray*)arrayItem:(int)index
{
    switch (index) {
        case 0:
            return [NSMutableArray arrayWithObjects:@"h1.jpg", @"h2.jpg", @"h3.jpg", @"h4.jpg", @"h5.jpg", @"h6.jpg", @"h7.jpg", @"h8.jpg", nil];
            break;
            
        case 1:
            return [NSMutableArray arrayWithObjects:@"h9.jpg", @"h10.jpg", @"h1.jpg", @"h2.jpg", @"h5.jpg", @"h8.jpg", @"h6.jpg", nil];
            break;
        case 2:
            return [NSMutableArray arrayWithObjects:@"h8.jpg", @"h3.jpg", @"h2.jpg", @"h1.jpg", @"h10.jpg", @"h4.jpg", @"h7.jpg", nil];
            break;
        case 3:
            return [NSMutableArray arrayWithObjects:@"h5.jpg", @"h4.jpg", @"h1.jpg", @"h2.jpg", @"h5.jpg", @"h8.jpg", @"h6.jpg", nil];
            break;
    }
    return nil;
}

@end
